package com.interview.component;

import com.interview.result.Result;
import com.interview.result.ResultCode;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;


/**
 * @author JiangYingbo
 */
//@Slf4j
//@RestControllerAdvice("com.interview")
//public class GlobalExceptionHandler {
//    @ExceptionHandler(Exception.class)
//    public Result exception(Exception e) {
//        log.info("全局异常", e);
//        return new Result(ResultCode.FAILED, e.getMessage());
//    }
//}
